﻿using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Contrast
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // PassWord ss = new PassWord();

            //Application.Run(new PassWord());
            string pass = XML.read("pass", "p.xml");
            string dsds = ComputerInfo.GetHDDSerial().Trim();
            dsds = ComputerInfo.GetEncryptPassword(dsds);
            if (pass != dsds)
            {
                PassWord passfrom = new PassWord();
                if (passfrom.ShowDialog() == DialogResult.OK)
                {
                    Application.Run(new Form1());
                }
            }
            else
            {
                Application.Run(new Form1());
            }

        }
    }
}
